home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / gutenprint / channel.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-03-15  |  3.2 KB  |  92 lines

  1. /*
  2.  * "$Id: channel.h,v 1.6 2005/07/03 22:13:36 rlk Exp $"
  3.  *
  4.  *   libgimpprint header.
  5.  *
  6.  *   Copyright 1997-2000 Michael Sweet (mike@easysw.com) and
  7.  *    Robert Krawitz (rlk@alum.mit.edu)
  8.  *
  9.  *   This program is free software; you can redistribute it and/or modify it
  10.  *   under the terms of the GNU General Public License as published by the Free
  11.  *   Software Foundation; either version 2 of the License, or (at your option)
  12.  *   any later version.
  13.  *
  14.  *   This program is distributed in the hope that it will be useful, but
  15.  *   WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  16.  *   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  17.  *   for more details.
  18.  *
  19.  *   You should have received a copy of the GNU General Public License
  20.  *   along with this program; if not, write to the Free Software
  21.  *   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  22.  *
  23.  * Revision History:
  24.  *
  25.  *   See ChangeLog
  26.  */
  27.  
  28. /**
  29.  * @file gutenprint/channel.h
  30.  * @brief Channel functions.
  31.  */
  32.  
  33. /*
  34.  * This file must include only standard C header files.  The core code must
  35.  * compile on generic platforms that don't support glib, gimp, gtk, etc.
  36.  */
  37.  
  38. #ifndef GUTENPRINT_CHANNEL_H
  39. #define GUTENPRINT_CHANNEL_H
  40.  
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44.  
  45.  
  46. extern void stp_channel_reset(stp_vars_t *v);
  47. extern void stp_channel_reset_channel(stp_vars_t *v, int channel);
  48.  
  49. extern void stp_channel_add(stp_vars_t *v, unsigned channel,
  50.                 unsigned subchannel, double value);
  51. extern double stp_channel_get_value(stp_vars_t *v, unsigned channel,
  52.                     unsigned subchannel);
  53.  
  54. extern void stp_channel_set_density_adjustment(stp_vars_t *v,
  55.                            int color, int subchannel,
  56.                            double adjustment);
  57. extern double stp_channel_get_density_adjustment(stp_vars_t *v,
  58.                          int color, int subchannel);
  59. extern void stp_channel_set_ink_limit(stp_vars_t *v, double limit);
  60. extern double stp_channel_get_ink_limit(stp_vars_t *v);
  61. extern void stp_channel_set_cutoff_adjustment(stp_vars_t *v,
  62.                           int color, int subchannel,
  63.                           double adjustment);
  64. extern double stp_channel_get_cutoff_adjustment(stp_vars_t *v,
  65.                         int color, int subchannel);
  66. extern void stp_channel_set_black_channel(stp_vars_t *v, int channel);
  67. extern int stp_channel_get_black_channel(stp_vars_t *v);
  68. extern void stp_channel_set_gloss_channel(stp_vars_t *v, int channel);
  69. extern int stp_channel_get_gloss_channel(stp_vars_t *v);
  70. extern void stp_channel_set_gloss_limit(stp_vars_t *v, double limit);
  71. extern double stp_channel_get_gloss_limit(stp_vars_t *v);
  72. extern void stp_channel_set_curve(stp_vars_t *v, int channel,
  73.                   const stp_curve_t *curve);
  74. extern const stp_curve_t *stp_channel_get_curve(stp_vars_t *v, int channel);
  75. extern void stp_channel_set_gcr_curve(stp_vars_t *v, const stp_curve_t *curve);
  76. extern const stp_curve_t *stp_channel_get_gcr_curve(stp_vars_t *v);
  77.  
  78. extern void stp_channel_initialize(stp_vars_t *v, stp_image_t *image,
  79.                    int input_channel_count);
  80.  
  81. extern void stp_channel_convert(const stp_vars_t *v, unsigned *zero_mask);
  82.  
  83. extern unsigned short * stp_channel_get_input(const stp_vars_t *v);
  84.  
  85. extern unsigned short * stp_channel_get_output(const stp_vars_t *v);
  86.  
  87. #ifdef __cplusplus
  88.   }
  89. #endif
  90.  
  91. #endif /* GUTENPRINT_CHANNEL_H */
  92.